Type LQProject
	Function Init(fileNamePath:String)
		If Not FileType(fileNamePath) = 1 Then
			Error("Invalid Project File Path and/or Name!")
		EndIf
		Local fileStream:TStream = LittleEndianStream(ReadFile(fileNamePath))
		If fileStream.ReadShort() <> PROG_VERSION Then
			Error("Project Version Does Not Match LQUE Version!")
		EndIf
		SetGadgetText(TxtProjectName,fileStream.ReadString(fileStream.ReadInt()))
		fileStream.Close()
	End Function
	
	Function Save(fileNamePath:String)
		Local fileStream:TStream = LittleEndianStream(WriteFile(fileNamePath))
		If Not fileStream Then Error("Could Not Save Project File!")
		fileStream.WriteShort(PROG_VERSION)
		Local projectName:String = GadgetText(TxtProjectName)
		fileStream.WriteInt(Len(projectName));fileStream.WriteString(projectName)
		fileStream.Close()
	End Function
End Type